<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>个人资料</title>
    <meta name="viewport" content="width=device-width,user-scalable=no, initial-scale=1">
    <link rel="stylesheet" href="/static/component/pear/css/pear.css"/>
    <script src="/static/component/layui/layui.js"></script>
    <script src="/static/component/pear/pear.js"></script>
    <script src="/static/component/pear/module/ruinuo/sortable.js"></script>
    <link rel="stylesheet" href="/static/component/pear/css//module/engine_table.css"/>
</head>
<body class="pear-container">
<div class="view_body"></div>
<script type="text/html" id="form_body_data">
    <form class="layui-form" action="">
        <div class="layui-row layui-col-space10 label_con form_top">
            <div class="design-box layui-col-xs12 layui-col-md12 user_box form_disabled">
                <label class="layui-form-label layui-form-item-required">账号</label>
                <div class="layui-input-block " data_tag="input" data_source="">
                    <input name="user" id="focus_5fa1_1713363731998_35982" type="text" lay-tag="input"
                           autocomplete="off" value="{{= d.detail.user}}" class="layui-input">
                </div>
            </div>
            <div class="design-box layui-col-xs12 layui-col-md12 name_box {{#  if(layui.engine_form.PowerField('name')==1){ }}form_disabled{{#  } }}">
                <label class="layui-form-label layui-form-item-required">姓名</label>
                <div class="layui-input-block " data_tag="input" data_source="">
                    <input name="name" id="focus_96dd_1713364612872_31938" type="text" lay-tag="input"
                           autocomplete="off" value="{{= d.detail.name}}" class="layui-input">
                </div>
            </div>
            <div class="design-box layui-col-xs12 layui-col-md12 avatar_box {{#  if(layui.engine_form.PowerField('avatar')==1){ }}form_disabled{{#  } }}">
                <label class="layui-form-label">图像</label>
                <div class="layui-input-block " data_tag="upimg" data_source="">
                    <input name="avatar" id="focus_6ced_1721960027588_39408" type="hidden" readonly lay-tag="upimg"
                           autocomplete="off" value="{{= d.detail.avatar}}" class="layui-input">
                    <div class="upfile display_flex">
                        <button class="pear-btn pear-btn-sm" type="button" id="upload_6ced_1721960027588_39408"><i
                                class="layui-icon layui-icon-addition"></i>上传图片
                        </button>
                    </div>
                    <div class="upload_con"></div>
                </div>
            </div>
            <div class="design-box layui-col-xs12 layui-col-md12 phone_box {{#  if(layui.engine_form.PowerField('phone')==1){ }}form_disabled{{#  } }}">
                <label class="layui-form-label layui-form-item-required">手机号</label>
                <div class="layui-input-block  layui-input-wrap" data_tag="phone" data_source="">
                    <div class="layui-input-prefix"><i class="ruinuo-icon icon-shouji1"></i></div>
                    <input name="phone" id="focus_20f4_1713364619520_73362" type="text" lay-tag="phone"
                           autocomplete="off" value="{{= d.detail.phone}}" class="layui-input">
                </div>
            </div>

            <div class="design-box layui-col-xs12 layui-col-md12 path_id_box form_disabled">
                <label class="layui-form-label">我的上级</label>
                <div class="layui-input-block " data_tag="select" data_source="admin_user_list">
                    <select name="path_id" lay-filter="select_filter" lay-search=""><option value="">请选择</option>
                        {{- layui.engine_form.SelectOption(d.source.admin_user_list.rows,d.detail.path_id)}}</select>
                </div>
            </div>
            <div class="design-box layui-col-xs12 layui-col-md12 role_ids_box form_disabled">
                <label class="layui-form-label layui-form-item-required">所属角色</label>
                <div class="layui-input-block " data_tag="cascader" data_source="admin_role">
                    <div  name="role_ids" id="focus_6a4f_1718182133690_28448" type="text" lay-tag="cascader"></div>
                </div>
            </div>
            <div class="design-box layui-col-xs12 layui-col-md12 department_ids_box form_disabled">
                <label class="layui-form-label layui-form-item-required">所属组织</label>
                <div class="layui-input-block " data_tag="cascader" data_source="department_list">
                    <div  name="department_ids" id="focus_59db_1713364717418_84771" type="text" lay-tag="cascader"></div>
                </div>
            </div>
            <div class="design-box layui-col-xs12 layui-col-md12">

            <button type="button" class="pear-btn pear-btn-primary layui-btn-fluid" onclick="SendForm()">
                <i class="layui-icon layui-icon-ok"></i>确定修改
            </button>
            </div>

        </div>
    </form>
</script>
<script type="text/html" id="view_body_data">
    <div class="body_con">
        <div class="left" style="width:300px">
            <div class="layui-card">
                <div class="layui-card-header">个人资料</div>
                <div class="layui-card-body form_body">

                </div>
            </div>
        </div>


        <div class="right">
            <div class="table_body">
                {{# if(d.header.tab.length != 0 || d.header.sum.length != 0){ }}
                <div class="table_head display_flex">
                    {{# if(d.header.tab.length != 0){ }}
                    <div class="head_menu flex_1 display_flex">
                        {{# layui.each(d.header.tab, function(index, item){ }}
                        <li {{# if(item.on){ }}class="on" {{# } }} data_current="{{item.current}}"
                            onclick="layui.engine_table.TableMenu(this)">
                            {{item.name}}<span class="layui-badge pear-btn-primary" id="tab_{{item.current}}">0</span>
                        </li>
                        {{# }); }}
                    </div>
                    {{# } }}
                    {{# if(d.header.sum.length != 0){ }}
                    <div class="head_sum display_flex">
                        {{# layui.each(d.header.sum, function(index, item){ }}
                        <li>{{item.name}}：<span class="layui-badge pear-btn-primary" id="sum_{{item.field}}">0</span>
                        </li>
                        {{# }); }}
                    </div>
                    {{# } }}
                </div>
                {{# } }}

                <div class="table_view layui-form" style="margin-top: 0px">
                    <div class="head_button display_flex">
                        <div class="flex_1">
                            {{# let drop=2;}}
                            {{# layui.each(d.header.button, function(index, item){ }}
                            {{# if(item.is_drop === 2){ }}
                            <button class="pear-btn pear-btn-sm {{item.btn_class}}"
                                    onclick="layui.engine_table.ButtonAciton({{index}},1,'{{d.table.elem}}')">
                                {{# if(item.icon){ }}<i class="ruinuo-icon {{item.icon}}"></i>{{# } }}{{item.title}}
                            </button>
                            {{# } }}
                            {{# if(item.is_drop === 1){ }}
                            {{# drop=1;}}
                            {{# } }}
                            {{# }); }}
                            {{# if(drop === 1){ }}
                            <button class="pear-btn pear-btn-sm head_more_button">
                                <i class="ruinuo-icon icon-arrow-down"></i>更多
                            </button>
                            {{# } }}
                        </div>
                        {{# if(d.header.search.datetime.length != 0 || d.header.search.like){ }}
                        <div class="layui-form display_flex">
                            <div class="flex_1 display_flex table_from">
                                {{# if(d.header.search.datetime.length != 0){ }}
                                <div class="datetime_select">
                                    <div class="layui-input-block">
                                        <select name="search_time_field" lay-filter="select_filter">
                                            {{# layui.each(d.header.search.datetime, function(index, item){ }}
                                            <option value="{{item.value}}">{{item.label}}</option>
                                            {{# }); }}
                                        </select>
                                    </div>
                                </div>
                                <div class="datetime_input">
                                    <div class="layui-input-block  layui-input-wrap">
                                        <div class="layui-input-prefix"><i class="ruinuo-icon icon-riqi"></i></div>
                                        <input id="search_time_field_val" name="search_time_field_val" type="text"
                                               readonly="" placeholder="开始日期 - 结束日期" autocomplete="off"
                                               lay-affix="clear" class="layui-input">
                                    </div>
                                </div>
                                {{# } }}
                                {{# if(d.header.search.like){ }}
                                <div class="keyword_input">
                                    <div class="layui-input-block layui-input-group">
                                        <div class="group_input group_prefix">关键词</div>
                                        <input name="keyword" type="text" placeholder="{{d.header.search.like}}"
                                               autocomplete="off" lay-affix="clear" class="layui-input">
                                    </div>
                                </div>
                                {{# } }}

                            </div>
                            <div>
                                <button class="pear-btn pear-btn-primary pear-btn-sm"
                                        onclick="layui.engine_table.SearchLoad('{{d.table.elem}}');">
                                    <i class="ruinuo-icon icon-search"></i>搜索
                                </button>
                                <button class="pear-btn pear-btn-sm"
                                        onclick="layui.engine_table.SearchBack('{{d.table.elem}}');">
                                    <i class="ruinuo-icon icon-back"></i>重置
                                </button>
                            </div>
                        </div>
                        {{# } }}
                    </div>
                    {{# if(d.table.style<=3){ }}
                    <table id="{{d.table.elem}}" lay-filter="{{d.table.elem}}"></table>
                    {{# } }}
                    {{# if(d.table.style>=4){ }}
                    <div class="card_table">
                        <div class="card_table_con"></div>
                    </div>
                    {{# } }}
                </div>
            </div>
        </div>
    </div>
</script>
<script src="/static/js/admin/info/setting.js?t={:time()}"></script>
</body>
</html>
